﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using System.Web;
using Harrby.Web.Profile;

namespace Harrby.Web.UI
{
    public class Page : System.Web.UI.Page
    {
        public Page(): base()
        {
            this.RouteData = RouteTable.Routes.GetRouteData(new HttpContextWrapper(HttpContext.Current));
        }

        public RouteData RouteData { get; set; }
        protected override void InitializeCulture()
        {
            base.InitializeCulture();
        }

        public UserProfile Profile
        {
            get { return (UserProfile)System.Web.HttpContext.Current.Profile; }
        }
    }
}
